﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/PBOAMasterPage.master"
    AutoEventWireup="true" CodeFile="FileSelect.aspx.cs" Inherits="FilesPage_FileSelect" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../CSS/Files.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="FileSelect">
        <uc:Navigator Text="搜索文件" runat="server" />
        <div id="select">
            <table>
                <tr>
                    <td id="selectTitle">
                        搜索文件
                    </td>
                </tr>
                <tr>
                    <td>
                        需要搜索的文件名
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="TextBoxAllFileName" runat="server" CssClass="textbox"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        文件名中包含的文字
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="TextBoxName" runat="server" CssClass="textbox"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        创建者名字
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="TextBoxCreateUserName" runat="server" CssClass="textbox"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center">
                        <asp:ImageButton ID="ImageButtonSelect" runat="server" ImageUrl="~/Images/file/bseach.gif"
                            OnClick="ImageButtonSelect_Click" Style="height: 20px" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="fileManage_fileSelect" runat="server">
            <table>
                <tr>
                    <td class="title_filemanage_fileselect">
                        文件名：
                    </td>
                    <td colspan="2">
                        <asp:Label ID="LabelFileName" runat="server" Text="Label" Width="200px"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="title_filemanage_fileselect">
                        位置：
                    </td>
                    <td colspan="2">
                        <asp:Label ID="LabelAddress" runat="server" Text="Label" Width="200px"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="title_filemanage_fileselect">
                        备注：
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="TextBoxMeno" runat="server" Width="200px" Height="50px" ReadOnly="True"
                            Rows="2"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="title_filemanage_fileselect">
                        创建时间：
                    </td>
                    <td>
                        <asp:Label ID="LabelCreateTime" runat="server" Text="Label" Width="200px"></asp:Label>
                    </td>
                    <td>
                        <asp:LinkButton ID="LinkButtonFileUpload" runat="server" Text="下载文件" 
                            onclick="LinkButtonFileUpload_Click"></asp:LinkButton>
                    </td>
                </tr>
            </table>
            <hr />
        </div>
        <div id="fileshow">
            <asp:GridView ID="GridViewShowFile" runat="server" Width="570px" CellPadding="4"
                ForeColor="#333333" GridLines="None" AutoGenerateColumns="False">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="类型">
                        <ItemTemplate>
                            <img alt="" src='<%#Eval("DocTypeImage") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="文件名">
                        <ItemTemplate>
                            <asp:LinkButton ID="DocName" runat="server" OnClick="DocName_Click" Text='<%#Eval("DocId")%>'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="位置">
                        <ItemTemplate>
                            <asp:Label ID="LabelAddress" runat="server" Text='<%#Eval("DocPath") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="上传人">
                        <ItemTemplate>
                            <asp:Label ID="UserId" runat="server" Text='<%#Eval("UserId")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建时间">
                        <ItemTemplate>
                            <asp:Label ID="DocCreatDate" runat="server" Text='<%#Eval("DocCreatDate","{0:D}")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="备注" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="DocMemo" runat="server" Text='<%#Eval("DocMemo")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
